package com.headfirst.BehaviorMode.command.remote.version1;

import com.headfirst.BehaviorMode.command.remote.version1.equipment.GarageDoor;

public class GarageDoorUpCommand  implements Command{

    GarageDoor garageDoor;

    public GarageDoorUpCommand(GarageDoor garageDoor) {
        this.garageDoor = garageDoor;
    }

    @Override
    public void execute() {
        garageDoor.up();
    }

    @Override
    public void undo() {
        garageDoor.down();
    }
}
